package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    //这是我的第一个程序666
    @RequestMapping("/h1")
    public String h1(){
        //控制台打印
        System.out.println("hello...........");
        return "Hello World";
    }
}
